package com.halflife.framework.participant.range;


import com.halflife.framework.participant.user.UserView;
import com.halflife.framework.domain.BaseDomain;
import com.halflife.framework.generator.annotation.Join;
import com.halflife.framework.generator.annotation.QueryAnn;

@QueryAnn(mainTitle = " 角色人员管理",title = "角色人员管理",table = "t_rolemembership")
public class RoleMembership extends BaseDomain{

	//用户UserView
	@QueryAnn(value = "用户Id", refered = true)
	private Integer userViewId;
	@QueryAnn(value = "用户",refered = true)
	@Join(joinType = "I")
	private UserView userView;

	@QueryAnn(value = "角色Id",refered = true)
	private Integer roleId;
	@QueryAnn(value = "角色",refered = true)
	@Join(joinType = "I")
	private Role role;

	public Integer getUserViewId() {
		return userViewId;
	}

	public void setUserViewId(Integer userViewId) {
		this.userViewId = userViewId;
	}

	public UserView getUserView() {
		return userView;
	}

	public void setUserView(UserView userView) {
		this.userView = userView;
	}

	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}
}
